package com.esionwong.basic.framework.convert;

import com.esionwong.basic.entity.SysUser;
import com.esionwong.basic.framework.shiro.vo.LoginSysUserVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 系统用户对象属性转换器
 *
 * @author esionwong
 */
@Mapper
public interface SysUserConvert {

    SysUserConvert INSTANCE = Mappers.getMapper(SysUserConvert.class);

    /**
     * 系统用户实体对象转换成登录用户VO对象
     *
     * @param sysUser 用户
     * @return 登录用户VO对象
     */
    LoginSysUserVo sysUserToLoginSysUserVo(SysUser sysUser);
}
